//
// Created by Administrator on 2021/5/24.
// @file DBusServiceServer.cpp
// @author jmdvirus
// @date $YEAR-$MONTH-24 15:25:00
//

#include "DBusServiceServer.h"

DBusServiceServer::DBusServiceServer(DBus::Connection &connection)
    : DBus::ObjectAdaptor(connection, "/com/webfuture/jklibs/systeminfo")
{
    connection.request_name("uk.org.thekelleys.dnsmasq");
}

std::string DBusServiceServer::GetSysInfo(const std::string &sysType)
{
    printf("here to get sysinfo\n");
    std::string              result = "windows, this is just test\nhello body";
    std::vector<std::string> list;
    list.push_back("test1");
    Queryed(list);
    return result;
}
